const {
	http
} = uni.$u

//获取openId
export const getOpenId = (params) => http.get('/api/userInfo/getOpenId', {
	params
});
//获取login
export const login = (params, config = {}) => http.post('/api/userInfo/login', params, config)
//获取getPhoneNumber
export const getPhoneNumber = (params) => http.get('/api/userInfo/getPhoneNumber', {
	params
});
//更新用户信息
export const updateUserInfo = (params, config = {}) => http.post('/api/userInfo/updateUserInfo', params, config)

//获取用户信息
export const getUserInfo = (params) => http.get('/api/userInfo/getUserInfo', {
	params
});
//首页信息
export const getIndexModel = (params) => http.get('/api/userInfo/getIndexModel', {
	params
});

// 根据ID获取新闻详情
export const getNewsDetails = (params) => http.get('/api/userInfo/getNewsDetails', {
	params
});
// 获取新闻列表
export const getNewsList = (params) => http.get('/api/userInfo/getNewsList', {
	params
});

//获取定位信息
export const getCityInfoByLatLng = (params) => http.get('/api/userInfo/getCityInfoByLatLng', {
	params
});




export const getCompanyInfo = (params) => http.get('/api/userInfo/getCompanyInfo', {
	params
});

// 根据电话获取商户信息
export const getCompanyInfoByPhone = (params, config = {}) => http.post('/api/userInfo/getCompanyInfoByPhone',
	params,
	config)
// 充值
export const rechangeBySqbXcx = (params, config = {}) => http.post('/api/userInfo/rechangeBySqbXcx',
	params,
	config)

// 查询充值

export const getRechangeOrderList = (params) => http.get('/api/userInfo/getRechangeOrderList', {
	params
});
// 查询日志
export const getAccountLogList = (params) => http.get('/api/userInfo/getAccountLogList', {
	params
});

// 查询结算订单列表
export const getOrderBillList = (params) => http.get('/api/userInfo/getOrderBillList', {
	params
});

// 查询结算订单列表
export const getToDayOrderBill = (params) => http.get('/api/userInfo/getToDayOrderBill', {
	params
});
// 根据中台编号获取中台ID
export const getCentShopByCentShopId = (params, config = {}) => http.post('/api/userInfo/getCentShopByCentShopId',
	params,
	config)
// 获取绑定列表
export const getUserInfoCentShopList = (params) => http.get('/api/userInfo/getUserInfoCentShopList', {
	params
});


// 添加绑定
export const addUserInfoCentShop = (params, config = {}) => http.post('/api/userInfo/addUserInfoCentShop',
	params,
	config)
// 删除绑定
export const delUserInfoCentShop = (params, config = {}) => http.post('/api/userInfo/delUserInfoCentShop',
	params,
	config)